home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / test / imf-diff.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1996-07-07  |  567 b   |  23 lines  |  [TEXT/R*ch]

  1. #!/bin/sh
  2.  
  3. grep -h '(imf ' ../lib/*.imf |
  4. sed -e 's/^(imf "\([-a-z0-9]*\)".*$/\1/' |
  5. sort |
  6. uniq >imf.defs
  7.  
  8. grep -h '(emblem-name ' ../lib/*.g |
  9. sed -e 's/^.*(emblem-name "\([-a-z0-9]*\)").*$/\1/'  >bar
  10. grep -h '(image-name ' ../lib/*.g |
  11. sed -e 's/^.*(image-name "\([-a-z0-9]*\)").*$/\1/' >barb
  12. grep -h ' image-name ' ../lib/*.g |
  13. sed -e 's/^.* image-name "\([-a-z0-9]*\)").*$/\1/' >barc
  14. cat bar barb barc >barx
  15. sort barx |uniq > imf.uses
  16.  
  17. echo "Differences between defined and used images"
  18. echo "('<' - definitions,  '>' - uses)"
  19.  
  20. diff -w imf.defs imf.uses
  21.  
  22. exit 0
  23.